/**
 * 
 */
package java8;

import java.io.PrintStream;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.util.TreeSet;

/**
 * @author zhongfang
 *
 */
public class testsss {

	static enum SS {
		HHH("He", "Gas");
		private SS(String s, String string) {
			ch = s;
			pp = string;
		}

		String ch;
		String pp;
	}

	static class MyExce extends RuntimeException {
		public MyExce(String string) {
			super(string);
		}

		public void getReason() throws Exception {
			// TODO Auto-generated method stub

		}

		@Override
		public String getMessage() {
			// TODO Auto-generated method stub
			return super.getMessage();
		}

		@Override
		public String getLocalizedMessage() {
			// TODO Auto-generated method stub
			return "xx";
		}

		@Override
		public synchronized Throwable getCause() {
			// TODO Auto-generated method stub
			return super.getCause();
		}

		@Override
		public synchronized Throwable initCause(Throwable cause) {
			// TODO Auto-generated method stub
			return super.initCause(cause);
		}

		@Override
		public String toString() {
			// TODO Auto-generated method stub
			return super.toString();
		}

		@Override
		public void printStackTrace() {
			// TODO Auto-generated method stub
			super.printStackTrace();
		}

		@Override
		public void printStackTrace(PrintStream s) {
			// TODO Auto-generated method stub
			super.printStackTrace(s);
		}

		@Override
		public void printStackTrace(PrintWriter s) {
			// TODO Auto-generated method stub
			super.printStackTrace(s);
		}

		@Override
		public synchronized Throwable fillInStackTrace() {
			// TODO Auto-generated method stub
			return super.fillInStackTrace();
		}

		@Override
		public StackTraceElement[] getStackTrace() {
			// TODO Auto-generated method stub
			return super.getStackTrace();
		}

		@Override
		public void setStackTrace(StackTraceElement[] stackTrace) {
			// TODO Auto-generated method stub
			super.setStackTrace(stackTrace);
		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// Boolean boolean1 = Boolean.parseBoolean(true);
		// Integer i = new Integer("9876543220");
		// Character character=new Character("C");
		// Byte byte1=Byte.parseByte(121);
		int x = 5;
		// x=!x;
		// x.value();
		x = ~x;
		int y = 0;
		// System.out.println(x / y);
		// System.out.println(SS.HHH.toString());
		BigDecimal decimal = new BigDecimal(100.00);
		double d = 6f;
		// int c = (int) (decimal * d * x / 100);
		int a1[][][] = new int[][][] { { { 1, 2 } }, { { 4, 3 } } };
		// int a2[5]=new int[]{1,3,4,5,6};
		int a = 9, b = 2;
		float f = a / b;
		System.out.println(f);
		char[] tmp = new char[] { 2, 3, 4, 5 };
		for (final int c : tmp) {

		}
		Integer tInteger = new Integer(1);
		Integer t2 = tInteger;
		tInteger++;
		System.out.println(tInteger + " " + t2);
		if (y > 0)
			if (x == 0)
				System.out.println("1");
			else
				System.out.println("2");
		else
			System.out.println("four");
		x = -1;
		System.out.println(x >>> 1);
		System.out.println(x >> 1);
		System.out.println(x >>> 32);
		System.out.println(x >> 32);
		// try {
		// x = 5 / 0;
		// } catch (Exception e) {
		// throw new MyExce("x");
		// }
		System.out.println(Math.round(123456789123456789.12f));

		int data = 0;
		testsss testsss = new testsss(data);
		testsss.De de = testsss.new De();
		de.dedd(data);
		testsss.display();

		TreeSet<Integer> set = new TreeSet<>();
	}

	class De {
		public void dedd(double data) {
			data = data - 1.0;
		}
	}

	public testsss() {
		// TODO Auto-generated constructor stub
	}

	double data;

	public testsss(int data) {
		this.data = data;
	}

	public void display() {
		System.out.println(data);
	}
}
